package com.teemor.blog.mapper;

import com.teemor.blog.bean.condition.TbSubscribeCondition;
import com.teemor.blog.bean.entity.TbSubscribe;
import java.util.List;

public interface TbSubscribeMapper {
    /**
     * 根据条件查询记录总数
     */
    int countSubscribeByCondition(TbSubscribeCondition tbSubscribeCondition);

    /**
     * 保存记录,不管记录里面的属性是否为空
     */
    int insertSubscribe(TbSubscribe tbSubscribe);

    /**
     * 根据条件查询记录集
     */
    List<TbSubscribe> selectSubscribeByCondition(TbSubscribeCondition tbSubscribeCondition);

    /**
     * 根据主键查询记录
     */
    TbSubscribe selectSubscribeById(Integer id);

    /**
     * 根据条件更新属性不为空的记录
     */
    int updateSubscribeByConditionSelective(TbSubscribeCondition tbSubscribeCondition);

    /**
     * 根据条件更新记录
     */
    int updateSubscribeByCondition(TbSubscribeCondition tbSubscribeCondition);

    /**
     * 根据主键更新属性不为空的记录
     */
    int updateSubscribeById(TbSubscribe record);
}